<%@page pageEncoding="utf-8" contentType="text/html; charset=utf-8"%>
<html>
	<head>
		<!-- <script type="text/javascript" src="http://cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
		<script type="text/javascript" src="/js/jquery.fileupload.js"></script>
		<script type="text/javascript" src="/js/vendor/jquery.ui.widget.js"></script>
		<script type="text/javascript" src="/js/jquery.fileupload-angular.js"></script>
		<script type="text/javascript" src="/js/jquery.fileupload-audio.js"></script>
		
		<script type="text/javascript" src="/js/jquery.fileupload-jquery-ui.js"></script>
		<script type="text/javascript" src="/js/jquery.fileupload-process.js"></script>
		<script type="text/javascript" src="/js/jquery.fileupload-ui.js"></script>
		<script type="text/javascript" src="/js/jquery.fileupload-validate.js"></script>
		<script type="text/javascript" src="/js/jquery.fileupload-video.js"></script>
		<link rel="stylesheet" href="/css/jquery.fileupload.css">
		<link rel="stylesheet" href="/css/jquery.fileupload-noscript.css">
		<link rel="stylesheet" href="/css/jquery.fileupload-ui-noscript.css">
		<link rel="stylesheet" href="/css/jquery.fileupload-ui-noscript.css">
		<link rel="stylesheet" href="/css/jquery.fileupload-ui.css">
		<link rel="stylesheet" href="/css/jquery.fileupload.css"> -->
		<link ref="stylesheet" href="/static/jquery.fileupload.css"/>
		<link rel="stylesheet" type="text/css" href="/css/jquery.fileupload.css">
		<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
		<link rel="stylesheet" href="/css/bootstrap.css" />
		<script src="/js/jquery.min.js"></script>
		<script src="/js/jquery.iframe-transport.js"></script>
		<script src="/js/jquery.fileupload.js"></script>
		<script src="/js/jquery.fileupload-image.js"></script>
		<script src="/js/vendor/jquery.ui.widget.js"></script>
	</head>
	<body>
		<div style="margin: 10px 10px 10px 10px">
		<span class="btn btn-success fileinput-button">
            <span>Add files...</span>
            <input type="file" name="file" id="fileupload" >
        </span>
		</div>
	</body>
</html>
<script>
$(function () {
    $('#fileupload').fileupload({
        dataType: 'json',
        url:"admin/upload",
        imageMaxWidth: 800,
 		imageMaxHeight: 800,
        beforeSend: function (e, data){
        	console.log(data);
        },
        done: function (e, data) {
        	console.log(data);
        }
        ,send: function (e, data) {
        	console.log(data);
        }
        ,fail:function(e, data){
        	console.log(data);
        },
        add:function(e, data){
        	console.log(data);
        }
    });
});
</script>







